package com.lcifn.middleware.rpc.transport.command;

import lombok.Data;

/**
 * 请求Code
 * @author lichao
 * @date 2021/1/31 17:49
 */

public enum Code {
    SUCCESS(0, "SUCCESS"),
    NO_PROVIDER(1, "no provider"),
    NOT_FOUND_METHOD(2, "not found method"),
    INVOKE_ERROR(10, "invoke error");


    private int code;
    private String message;

    Code(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
